class Dog{
    public String Name;
    public String Color;
    public int Age;

    public void way(){
        System.out.println( Name+"摇尾巴");
    }
    public void bark(){
        System.out.println(Name+"汪汪");
    }

    public Dog() {
        this("王","红色",6);

    }

    public Dog(String name, String color, int age) {
        Name = name;
        Color = color;
        Age = age;
    }
    public void  printDat(){
        System.out.println(Name+" "+Color+" "+Age);
    }
}


public class Test {

    public static void main(String[] args) {
//        Dog dog=new Dog();

//        dog.printDat();
            Date date =new Date();

            date.setDay(19);
            date.setMonth(04);
            date.setYear(2000);
        System.out.println(date.getYear());
        System.out.println(date.getMonth());
        System.out.println(date.getDay());

    }
}












